.layout-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  height: 52px;
  background: #fff;
  color: #333;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-center {
  height: 52px;
  display: flex;
  justify-content: center;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* 导航容器 */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* 菜单容器 */
.menu-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* 增加菜单项之间的间距 */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: none;
  white-space: nowrap;
  color: #1e5799;
}

.logo img {
  width: 200px;
}

.current-time {
  font-size: 18px;
  color: #666;
  white-space: nowrap;
}

.user-info {
  font-size: 14px;
  font-weight: 500;
  margin-left: 18px;
  padding: 6px 18px;
  /*background: linear-gradient(90deg, #e3f0ff 0%, #f7fbff 100%);*/
  color: #1890ff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(30, 87, 153, 0.06);
  border: 1px solid #e6f0fa;
  transition: all 0.2s;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  min-width: 90px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.user-info:hover {
  /*box-shadow: 0 4px 16px rgba(30, 87, 153, 0.12);
  background: linear-gradient(90deg, #d0e7ff 0%, #eaf4ff 100%);*/
  color: #1e5799;
  transform: translateY(-1px);
}

.user-info:active {
  transform: translateY(0);
}

/* 用户下拉菜单样式 */
.ant-dropdown .ant-dropdown-menu {
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
  padding: 8px 0;
}

.ant-dropdown .ant-dropdown-menu-item {
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.2s;
}

.ant-dropdown .ant-dropdown-menu-item:hover {
  background-color: #f5f5f5;
}

.ant-dropdown .ant-dropdown-menu-item-divider {
  margin: 4px 0;
  background-color: #f0f0f0;
}

.nav-item {
  height: 52px;
  color: #333;
  text-decoration: none;
  padding: 10px 24px; /* 增加左右内边距，让菜单项更宽松 */
  transition: all 0.3s;
  white-space: nowrap;
  position: relative;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-item.active {
  background-color: #eef8ff;
  font-weight: bold;
  color: #1e5799;
  border-bottom: 3px solid #1e5799;
}

.nav-item:hover {
  background-color: #2989d8;
  color: #fff;
}

.nav-item:hover .anticon {
  color: #fff!important;
}

/* 下拉菜单样式 */
.dropdown-menu {
  position: relative;
  display: inline-block;
}

.dropdown-menu:hover .dropdown-content,
.dropdown-content:hover {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  white-space: nowrap;
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 6px;
  overflow: hidden;
  padding: 12px;
  margin-top: 5px;
  display: flex;
  flex-direction: row;
  min-width: 150px;
  transition: all 0.3s ease-in-out;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  color: #333;
  padding: 10px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.2s;
  white-space: nowrap;
  border-radius: 6px;
  font-size: 16px;
}

.dropdown-item:hover {
  background-color: #f0f2f5;
}

.active-item {
  background-color: #e6f7ff;
  color: #1890ff;
  font-weight: 500;
}

/* 让下拉菜单显示小三角形 */
.dropdown-content:before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.03));
  z-index: 2;
}

.dropdown-content:after {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 9px 9px 9px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.05) transparent;
  z-index: 1;
}

.search-form {
  display: flex;
  align-items: center;
  height: 38px;
}

.search-input {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #1890ff;
  border-right: none;
  border-radius: 19px 0 0 19px;
  width: 220px;
  font-size: 15px;
  outline: none;
  transition: border 0.2s;
  background: #fff;
}

.search-input:focus {
  border-color: #1890ff;
}

.search-button {
  height: 38px;
  background-color: #1890ff;
  border: 1px solid #1890ff;
  border-radius: 0 19px 19px 0;
  border-left: none;
  padding: 0 18px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  transition:
    background 0.2s,
    border 0.2s;
}

.search-button:hover {
  background-color: #1890ff;
  border-color: #1890ff;
}

.search-button svg {
  color: #fff;
  font-size: 20px;
}

.main-content {
  flex: 1;
  padding: 20px;
  background-color: #eaeff2;
  display: flex;
  flex-direction: column;
}

.footer {
  background: linear-gradient(to right, #1e5799, #2989d8);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 12px;
}

/* 子菜单样式 */
.sub-nav {
  display: flex;
  background-color: #f0f2f5;
  border-top: 1px solid #e8e8e8;
  padding: 0 20px;
  margin-top: 5px;
}

.sub-nav-item {
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  position: relative;
  font-size: 14px;
}

.sub-nav-item:hover {
  color: #1e5799;
}

.sub-nav-item.active {
  color: #1e5799;
  font-weight: bold;
}

.sub-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1e5799;
}

.breadcrumb {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
  /*padding-top: 14px;*/
}

:global {
  :is(tr).ant-table-measure-row td {
    overflow: hidden;
  }
}

.ant-message {
	margin-top: 50px;
}